import { request } from '@/api/request'
import { encrypt } from '@/utils/jsencrypt'

// 注册
export function register(data) {
  return request({
    url: '/register',
    method: 'post',
    data: {
      ...data,
      password: encrypt(data.password)
    }
  })
}
